Update comments on explicit completion
authorFederico Mena Quintero <federico@gnu.org>
Thu, 13 Mar 2008 00:40:57 +0000 (00:40 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Thu, 13 Mar 2008 00:40:57 +0000 (00:40 +0000)
Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=19835

gtk/gtkfilechooserentry.c

index 478fe3d836f2a17603f63c4ab3ba44f9dcff10c2..b7cc08f06f78b3e9911be132704b4e2f6a70a405 100644 (file)
@@ -528,10 +528,11 @@ find_common_prefix (GtkFileChooserEntry *chooser_entry,
 }
 
 typedef enum {
-  PREFIX_APPENDED,
-  UNIQUE_PREFIX_APPENDED,
   INVALID_INPUT,
-  NO_COMMON_PREFIX
+  NO_MATCH,
+  COMPLETED,
+  COMPLETED_UNIQUE,
+  COMPLETE_BUT_NOT_UNIQUE
 } CommonPrefixResult;
 
 /* Finds a common prefix based on the contents of the entry and mandatorily appends it */
@@ -578,6 +579,13 @@ append_common_prefix (GtkFileChooserEntry *chooser_entry,
 
       have_result = TRUE;
     }
+  else
+    {
+      /* FIXME:  if there was no unique_path, but there was a common_prefix,
+       * then we *may* have "complete but not unique".  find_common_prefix()
+       * needs to say if the match was a complete entry, or a partial one.
+       */
+    }
 
   printf ("common prefix: \"%s\"\n",
          common_prefix ? common_prefix : "<NONE>");